#ifndef __MAIN_H__
#define __MAIN_H__

//----------------------------头文件依赖----------------------------//
#include <stdbool.h>
#include <string.h>
#include <stdint.h>

#include "SWM341.h"
//#include "SEGGER_RTT.h"

#include "version.h"

#include "ff.h"

#include "lvgl.h"
#include "lv_port_disp.h"
#include "lv_port_indev.h"
//#include "lv_port_fs.h"
#include "lv_conf.h"

#include "dev_systick.h"
#include "dev_uart.h"
#include "dev_sdio.h"
#include "dev_sdram.h"
#include "dev_spiflash.h"
#include "dev_jpeg.h"
#include "dev_dac.h"
#include "dev_lcd.h"
#include "dev_touch.h"

#include "avi_parser.h"
#include "load_file.h"
#include "load_mv.h"


#include "bsp_init.h"

//----------------------------全局宏----------------------------//
#define ARM_LINKER_AUTO			0 // 0:在链接时手动指定绝对地址; 1:在链接时按sct文件设置分配地址
 
/* 简单打印调试信息, 后续考虑加上 log.c/h */
//#define USE_DEBUG 
#ifdef  USE_DEBUG
	#define DEBUG(...)           printf( __VA_ARGS__)
	#define DEBUG_WARN(...)      printf("Warning--" __VA_ARGS__)
	#define DEBUG_ERROR(...)     printf("ERROR--" __VA_ARGS__)
	
#else
    #define DEBUG(...)          ;
    #define DEBUG_WARN(...)     ;
    #define DEBUG_ERROR(...)    ;
	
#endif //USE_DEBUG


#ifndef LOG_INFO  
  #define LOG_INFO  DEBUG
#endif

#endif //__MAIN_H__
